﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="TimKen.Web.Admin.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=GetLangString("AdminNavSite")%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="styles/general.css" rel="stylesheet" type="text/css" />
    <link href="styles/header.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form runat="server">
    <div id="header-div">
        <div id="logo-div">
            <img src="images/ecshop_logo.gif" width="160" height="57" /></div>
        <div id="submenu-div">
            <ul>
                <li>&nbsp;</li>
                <li><a href="javascript:toggleCalculator()">
                    <%=GetLangString("Calculator")%></a></li>
                <li><a href="/Index.aspx" target="_blank">
                    <%=GetLangString("Preview")%></a></li>
                <li><a href="javascript:window.top.frames['main-frame'].document.location.reload()">
                    <%=GetLangString("Refresh")%></a></li>
                <li>
                    <asp:ImageButton ImageUrl="~/images/chinese.gif" ID="ibCh" runat="server" OnClick="ibCh_Click" /><asp:ImageButton
                        ImageUrl="~/images/english.gif" ID="ibEn" runat="server" OnClick="ibEn_Click" /></li>
            </ul>
        </div>
    </div>
    <div id="menu-div">
        <ul>
            <li><a href="Main.aspx" target="main-frame">
                <%=GetLangString("AdminHome")%></a></li>
            <li style="float: right; border-right: 0;"><a href="Logout.aspx" target="_top">
                <%=GetLangString("Logout")%></a></li>
        </ul>
        <br class="clear" />
    </div>

    <script type="Text/Javascript" language="JavaScript">
<!--
 
function toggleCalculator()
{
  var frameMain = parent.document.getElementById("main-frame");
  var vis = frameMain.contentWindow.document.getElementById("calculator").style.visibility;
  
  try
  {
  	frameMain.contentWindow.document.getElementById("calculator").style.visibility = (vis == 'visible') ? "hidden" : "visible";
  }
  catch (e)
  {
    alert(e);
  }
}
 
//-->
    </script>

    </form>
</body>
</html>
